package org.kumas.mybatissimple.executor;

import org.kumas.mybatissimple.binding.MapperMethod;
import org.kumas.mybatissimple.executor.statement.SimpleStatementHandler;
import org.kumas.mybatissimple.executor.statement.StatementHandler;

import java.sql.SQLException;

/*************************************************
 * TODO_Kumas
 *  @author KumasZhang
 *  DateTime： 2011-02-13 10:32
 *  Description： 
 **/
public class SimpleExecutor implements Executor {


    @Override
    public <T> T query(MapperMethod mapperMethod, Object parameter) throws SQLException {
        StatementHandler statementHandler = new SimpleStatementHandler();

        return statementHandler.query(mapperMethod, parameter);
    }

}
